﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AzureDiagMon.Common.Mvvm
{
    /// <summary>
    /// Represents a "checkable" entity
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class Checkable<T> : Checkable
    {
        public new T Entity
        {
            get { return (T)entity; }
            set
            {
                entity = value;
                RaisePropertyChanged("Entity");
            }
        }


        public Checkable(T value, bool isChecked = false, bool isEnabled = true)
            : base(value, isChecked, isEnabled)
        {
        }

    }
}
